
/**函数命名:控件名+字段名+click**/
var purchase_listhandleclick = function(e){
	mini.open({
        url: projectName+"/TableDefineAdmin/equipmentselectPage",
        title: "设备选择器", width: 700, height: 500,
        onload: function () {
            var iframe = this.getIFrameEl();
            iframe.contentWindow.CheckEventEquipment(json);
        },
        ondestroy: function (action) {
        	if(typeof(action)=="object"  && action.status==1){
        		   //设置人员选择器中的内容
        		var data = action.rows;
        		if(data.length!=1){
        			mini.alert("只能选择一条数据");
        		}else{
        			 var grid = mini.get("subtable2_datagrid");
                     grid.updateColumn("EQ_ID",data[0].equipmentId);	
                     grid.updateColumn("EQ_NAME",data[0].equipmentName);	
                     grid.updateColumn("EQ_TYPE_ID",data[0].equipmentType);	
                     grid.updateColumn("EQ_TYPE_NAME",data[0].equipmentTypeName);	
        		}
        	}
         
        }
    });
}

function setEquipmentInput(action.rows,name){
	EQ_ID;
	EQ_NAME;
	EQ_TYPE_ID;
	EQ_TYPE_NAME;
	
	
}